physics_particle_get_gravity_scale

Get the current gravity scale factor as defined for all particles.

语法:

physics_particle_get_gravity_scale()


返回: Real(实数)


描述

With this function you can find out what the current gravity scale factor is for particles in the physics simulation (you can set this value using physics_particle_set_gravity_scale()).


例如:

physics_particle_set_gravity_scale(physics_particle_get_gravity_scale() + 0.1);

The above code will set the gravity scale.


上一页: Soft Body Particles
下一页: physics_particle_set_flags
© Copyright YoYo Games Ltd. 2018 All Rights Reserved